package com.zzyl.service.impl;

import com.zzyl.base.PageResponse;
import com.zzyl.mapper.NursingProjectMapper;
import com.zzyl.service.NursingProjectService;
import com.zzyl.vo.NursingProjectVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NursingProjectImpi implements NursingProjectService {
@Autowired
   private NursingProjectMapper nursingProjectMapper;
    @Override
    public PageResponse selectById(String name, Integer status, Integer pageNum, Integer pageSize) {
        List<NursingProjectVo> nursingProjectVos = nursingProjectMapper.selectById(name, status);
            return PageResponse.of(nursingProjectVos,PageResponse.class);
    }
}
